package cate.common.table.item.yoke.sheet;

import cate.common.table.ESheet;
import cate.common.table.item.yoke.row.HeroLimitRow;
import cate.common.table.item.yoke.row.StarAttrRow;

public class StarAttrSheet extends ESheet<StarAttrRow> {
    @Override
    public String getSheetName() {
        return "羁绊星级属性";
    }

    public StarAttrRow getRowByProtoIdAndStar(int protoId, int star) {
        for (StarAttrRow row :
                getList()) {
            if (row.protoId == protoId && row.slaveStar == star) {
                return row;
            }
        }
        return null;
    }
}
